<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="/WEB-INF/c.tld" prefix="c"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
	String id=request.getParameter("id");
%>

<!DOCTYPE HTML >
<html>
<head>
<base href="<%=basePath%>">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no, minimal-ui">
<title>药品详情</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3" />
<link rel="stylesheet" href="<%=basePath%>css/wx.css" />
<link rel="stylesheet" href="<%=basePath%>css/weui.css" />
<link rel="stylesheet" href="<%=basePath%>css/example.css" />
<link rel="stylesheet" href="<%=basePath%>css/talkReult.css" />
<meta http-equiv="description" content="This is my page">
<script type="text/javascript" src="<%=basePath%>js/jquery.js"></script>
<style type="text/css">
.myhead {
	font-size: 20px;
	text-align: center;
	padding: 10px;
	border: 1px bolid #00fff;
}

.tip {
margin-left: 5%;
margin-right: 5%
}
.weui_extra_area ul li{
list-style:none; /* 将默认的列表符号去掉 */
padding:8px; /* 将默认的内边距去掉 */
float:left; /* 往左浮动 */
height: auto;
}
</style>
</head>
<script type="text/javascript">
var id="<%=id%>";
$.ajax({
        url: "<%=basePath%>illness/getIllById.spring",
    	data:{id:id},
        type: "POST",
        dataType: 'json',
        cache: false,
        success: function (ret) {
        console.log(ret);
        	var html="";
        	if(ret!=null){
        				var data=ret;
        				$("#illness").html(data.illness);
        				$("#LevelOneSubject").html(data.levelOneSubject);
        				$("#Scheme").html(data.scheme);
        				if(data.sex==1){
        					$("#Sex").html("女");
        				}else if (data.sex==0){
        				$("#Sex").html("男");
        				}else{
        					$("#Sex").html("所有人");
        				}
        				$("#duration").html(data.duration);
        				$("#pathogen").html(data.pathogen);
        				$("#AssistantExam").html(data.assistantExam);
        				$("#medicine").html(data.medicine);
        	}
        }
    });

</script>
<body>
	<section>
		<div class="note blue tip" >
			<span style="font-size: 20px;margin-left: -1em;color: #fff;">疾病名称：</span>
			<p id="illness"></p>
		</div>
	</section>
	<section>
		<div class="note blue tip" >
			<span style="font-size: 20px;margin-left: -1em;color: #fff;">所属科目：</span>
			<p id="LevelOneSubject"></p>
		</div>
	</section>
	<section>
		<div class="note blue tip">
			<span style="font-size: 20px;margin-left: -1em;color: #fff;">病因：</span>
			<p id="pathogen"></p>
		</div>
	</section>
	<section>
		<div class="note blue tip">
			<span style="font-size: 20px;margin-left: -1em;color: #fff;">诊疗方案：</span>
			<p id="Scheme"></p>
		</div>
	</section>
	<section>
		<div class="note blue tip">
			<span style="font-size: 20px;margin-left: -1em;color: #fff;">多发人群：</span>
			<p id="Sex"></p>
		</div>
	</section>
	<section>
		<div class="note blue tip">
			<span style="font-size: 20px;margin-left: -1em;color: #fff;">多发年龄：</span>
			<p id="Duration"></p>
		</div>
	</section>
	<section>
		<div class="note blue tip">
			<span style="font-size: 20px;margin-left: -1em;color: #fff;">用药：</span>
			<p id="medicine"></p>
		</div>
	</section>
	<section>
		<div class="note blue tip">
			<span style="font-size: 20px;margin-left: -1em;color: #fff;">辅助检查：</span>
			<p id="AssistantExam"></p>
		</div>
	</section>
	<section>
		<div class="note blue tip">
			<span style="font-size: 20px;margin-left: -1em;color: #fff;">发病时间：</span>
			<p id="duration"></p>
		</div>
	</section>
</body>
</html>
